package com.aaa.controller;

import com.aaa.entity.LoginInfo;
import com.aaa.service.LoginInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("system/loginInfo")
public class LoginController {
    @Autowired
    private LoginInfoService loginInfoService;

    @PostMapping("addLoginLog")
    public void addLoginLog(@RequestBody LoginInfo loginInfo){
        System.out.println(" =111111111111 ");
        loginInfoService.insert(loginInfo);
    }
}
